package com.cwd.arm.domain.repository;

import com.cwd.arm.domain.entity.ProjectEntity;
import com.cwd.arm.domain.entity.ReceiveNodeEntity;
import com.cwd.arm.domain.entity.TaxEntity;

import java.util.List;

/**
 * Description:收款节点
 * Created on 2021年11月16日
 *
 * @author yan
 */
public interface ReceiveNodeRepository {

    void save(List<ReceiveNodeEntity> entityList);

    void save(ProjectEntity projectEntity,List<ReceiveNodeEntity> entityList);

    Long save(ReceiveNodeEntity entity);

    void update(ReceiveNodeEntity entity);

    void del(Long id);

    ReceiveNodeEntity selectById(Long id);

    void addTax(ReceiveNodeEntity receiveNodeEntity, TaxEntity taxEntity);

    void updateTax(ReceiveNodeEntity receiveNodeEntity, TaxEntity oldTaxEntity, TaxEntity taxEntity);

    void delTax(ReceiveNodeEntity receiveNodeEntity, TaxEntity taxEntity);

    ReceiveNodeEntity buildReceiveNodeEntity(Long id);

}


